"""
# @Description: drf序列化
# @Author: chen990627
# @Date: 2022/03/08
"""

from user.models import UserInfo
from rest_framework import serializers

class UserInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserInfo
        fields = ('id', 'last_login', 'username', 'email', 'is_active', 'date_joined', 'user_phone')